cmake_minimum_required (VERSION 2.8)
project(qmessaging CXX C)
if(UNIX OR MING)
    set(STATIC_LIBRARY_FLAGS"${STATIC_LIBRARY_FLAGS} -i")
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++0x -Wall -fPIC")
    link_directories(/usr/lib)
    if(DEBUG)
        set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ggdb")
    endif(DEBUG)
endif(UNIX OR MING)
set(CMAKE_INCLUDE_CURRENT_DIR on)

foreach(X src example)
    add_subdirectory(${X})
endforeach(X)
